package com.dabai.iot.core.event;

import com.dabai.iot.common.enums.AlarmConditionEnum;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 告警事件
 *
 * @author kev1n
 */
@Data
public class AlarmEvent implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 跟踪ID
     */
    private String traceId;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 告警条件类型
     */
    private AlarmConditionEnum conditionEnum;

    /**
     * 属性上报 payload
     */
    private String propertyPayload;

    /**
     * 设备在线、离线状态
     */
    private String statusValue;

}
